﻿
using System ;
using System.Data ;


namespace MskEdit.Dxf.Model
{

    public class DxfAttrDataTable : DataTable
    {
        public DxfAttrDataTable() : base( "DxfAttribs" ) {
            this.Columns.Add( new DataColumn( "DocName" ) ) ;
            this.Columns.Add( new DataColumn( "AttrdefPrompt" ) ) ;
            this.Columns.Add( new DataColumn( "AttribText" ) ) ;
        }
        
        
        public DataRow NewRow( string dxfDocName, string attrdefPrompt, string attribText) {
        
            DataRow newRow = this.NewRow() ;
            
            newRow["DocName"]       = dxfDocName ;
            newRow["AttrdefPrompt"] = attrdefPrompt ;
            newRow["AttribText"]    = attribText ;
            
            return newRow ;
        }
    }
}
